package com.punch.punchtable.vo;

public class ResponseVO {

    private String msg;

    private Integer code;

    private Object data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static ResponseVO ok(Object o){
        ResponseVO vo = new ResponseVO();
        vo.setCode(0);
        vo.setData(o);
        vo.setMsg("success");
        return vo;
    }
}
